//更换称谓 {"称谓ID":1}
// @ts-ignore
export async function execute(client_id,message_json) {
    let characters = G.Characters.get_current_login_characters(client_id);
    let index = message_json["称谓ID"];
    let chengwei = "";
    if (index === 0) {
        characters["当前称谓"] = chengwei;
        ClientUtils.send_basic_prompt(client_id, "称谓已隐藏");
    } else {
        index = index - 1;
        let chengwei = characters["称谓"][index];
        if (chengwei === undefined) {
            ClientUtils.send_basic_prompt(client_id, "称谓不存在");
            return;
        }
        characters["当前称谓"] = chengwei;
        ClientUtils.send_basic_prompt(client_id, "称谓已变更");
    }
    G.MapUtils.update_chengwei(characters["id"]);
}